package cn.springsoter.core.log4j2.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import cn.springsoter.core.log4j2.LogParamMDC;

/**
 * 
 * @author kevin
 *
 */
public class LogMDCFilter implements Filter {

	@Override
	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
			throws IOException, ServletException {
		LogParamMDC.putMDC();
		chain.doFilter(request, response);
	}

}
